.modal.modal--fixed-footer
  .modal__content
    - unless params[:hide_upload]
      .upload-asset
        %h4 Upload an Asset from your Device
        .progress-container
        = form_for Tenon::Asset.new, format: 'json', builder: Tenon::FormBuilder do |f|
          .input-block
            %label.btn{ for: 'file-upload' } Browse
            %input#file-upload.upload{ type: 'file', multiple: defined?(multiple) && multiple, style: 'position: absolute; left: -9999px;', name: 'asset[attachment]' }

      .word-line
        .word-line__word or

    %h4 Choose an Asset from the Asset Library
    #pick-asset
      = react_component 'Tenon.RI.StandaloneList',
        title: 'Assets',
        recordsPath: assets_path(format: 'json'),
        newPath: new_asset_path,
        childComponentNames: { List: 'AssetList', Record: 'AssetRecord' }

  .modal__footer
    %a.modal__action{ href: '#!', data: { modal_close: true } } Cancel
